package com.dhcc.bpm.modules.mail.vo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.HandlerResolver;
import javax.xml.ws.handler.PortInfo;
import java.util.ArrayList;
import java.util.List;

@Component
public class HeaderHandlerResolver implements HandlerResolver {

    @Autowired
    private RequesterCredentials requesterCredentials;
    @Override
    public List<Handler> getHandlerChain(PortInfo portInfo) {
        List<Handler> handlerChain = new ArrayList<Handler>();
        handlerChain.add(requesterCredentials);
        return handlerChain;
    }
}
